﻿using CefSharp.WinForms;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Edu.ZJ
{
    public class SiteModel
    {
        public string Code { get; set; }

        public string Name { get; set; }

        public string HomeUrl { get; set; }

        public string Domain { get; set; }

        public bool NeedCookie { get; set; } = false;

        public UserModel User { get; set; }

        public FileModel Script { get; set; }

        public FileModel Html { get; set; }

        public CookieModel Cookie { get; set; }

        public FileModel Download { get; set; }

        public Action<string, SiteModel, ExtChromiumBrowser> FrameLoadEnd { get; set; }

        public override string ToString()
        {
            return $"{Name}({Domain})";
        }
    }
}
